﻿using Domain.Entity.bs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain.IRepository
{
    public interface IPublicFileRepository
    {
        //添加公共附件
        Task<int> AddFile(string? type,string? code,string? file,string? title);

        //根据业务类型和编号查询对应的附件
        Task<List<PublicFile>> GetPublicFileBy(string? type,string? code);

        //删除公共附件
        Task<int> DeleteFile(string? type, string? code);

        //添加公共附件
        Task<int> AddFile(PublicFile publicFile);
    }
}
